package com.kgc.polym.demo1;

/**
 * 宠物类
 */
public class Pet {
    private String nickName;
    private int health;
    private int love;
    private int liveness;//活跃度

    public Pet() {

    }

    public Pet(String nickName, int health, int love, int liveness) {
        this.setNickName(nickName);
        this.setHealth(health);
        this.setLove(love);
        this.setLiveness(liveness);
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public int getHealth() {
        return health;
    }

    public void setHealth(int health) {
        this.health = health;
    }

    public int getLove() {
        return love;
    }

    public void setLove(int love) {
        this.love = love;
    }

    public int getLiveness() {
        return liveness;
    }

    public void setLiveness(int liveness) {
        this.liveness = liveness;
    }

    //显示宠物信息
    public void showDetails(){

    }
}
